package designMode.factoryPattern;

/**
 * @ClassName CheesePizzaStore
 * @Description
 * @Author LIBOFEI
 * @Date 2020/6/18 23:22
 * @Version 1.0
 **/
public class CheesePizzaStore extends PizzaStore {

    @Override
    Pizza createPizza(String type) {
        Pizza pizza = null;
        if("cheese".equals(type)){
            pizza = new CheesePizza();
        }
        return pizza;
    }
}
